package com.example.demo.api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.po.ResultMsg;
import com.example.demo.service.FavoriteService;

@RestController
@RequestMapping("/api")
public class FavoriteApi {

	@Autowired
	private FavoriteService favoriteService;
	@RequestMapping("/favorite")
	public long inscr() {

		long i =favoriteService.updateFavorofArticeById();
	
		return i;
	}
}
